//ant-design 按需加载   只需要引入主体部分，如menu，不要引入menu-item 要不然报错
import {
  Button,
  Layout,
  Menu,
  Form,
  Input,
  Avatar,
  Dropdown,
  Table,
  Modal,
  Transfer,
  Select,
  DatePicker, Pagination, Upload,
  Checkbox,
  Tree,
  Switch,
  Tooltip,
  Progress,
  Radio,
  TreeSelect,
  Collapse,
  Popconfirm
} from "ant-design-vue"
const components = [Button, Upload, Tree, Layout, Menu, Form, Input, Avatar, Dropdown, Table, Modal, Transfer, Select, DatePicker, Progress, Radio,
  Tooltip, Checkbox, Pagination, Switch, TreeSelect, Collapse, Popconfirm]
export function setupAntd(app) {
  components.forEach((component) => {
    app.use(component);
  });
}